package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface IPermissionService {
    void deleteByPrimaryKey(Long id);

    void insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    void updateByPrimaryKey(Permission record);

    PageResult query(QueryObject qo);

    void reload();

    List<Permission> queryPermissionByRoleId(Long roleId);
}
